using System;
using System.Data.Entity.ModelConfiguration;
using System.Data.Common;
using System.Data.Entity;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using DomainLayer.Data.Entities;

namespace Infrastructure.Data.Mapping
{
	public class AbnormWaybillReplyMap : EntityTypeConfiguration<AbnormWaybillReply>
	{
		public AbnormWaybillReplyMap()
		{
			// Primary Key
			this.HasKey(t => t.ID);

			// Properties
			this.Property(t => t.VanclReplyContent)
				.HasMaxLength(200);
				
			this.Property(t => t.VanclDisposalStatus)
				.HasMaxLength(50);
				
			this.Property(t => t.VanclDisposalResult)
				.HasMaxLength(250);
				
			this.Property(t => t.VanclDisposalFeedback)
				.HasMaxLength(250);
				
			// Table & Column Mappings
			this.ToTable("AbnormWaybillReply");
			this.Property(t => t.ID).HasColumnName("ID");
			this.Property(t => t.AbnormWaybillID).HasColumnName("AbnormWaybillID");
			this.Property(t => t.WaybillNO).HasColumnName("WaybillNO");
			this.Property(t => t.VanclReplyContent).HasColumnName("VanclReplyContent");
			this.Property(t => t.VanclReplyTime).HasColumnName("VanclReplyTime");
			this.Property(t => t.VanclDisposalStatus).HasColumnName("VanclDisposalStatus");
			this.Property(t => t.VanclDisposalResult).HasColumnName("VanclDisposalResult");
			this.Property(t => t.VanclDisposalFeedback).HasColumnName("VanclDisposalFeedback");
			this.Property(t => t.UpdateBy).HasColumnName("UpdateBy");
			this.Property(t => t.UpdateStation).HasColumnName("UpdateStation");
			this.Property(t => t.UpdateTime).HasColumnName("UpdateTime");
			this.Property(t => t.IsDelete).HasColumnName("IsDelete");
		}
	}
}

